package com.gupaoedu.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[]{"application.xml"});
        IPayService payService = (IPayService) applicationContext.getBean("payService");

        // pay方法一定是远程调用
        String rs = payService.pay("Test");
        System.out.println(rs);
    }
}
